<?php
// +----------------------------------------------------------------------
// |店铺model
// +----------------------------------------------------------------------
namespace app\common\Model;

use think\Model;
use think\facade\Db;

class ShopMoedel extends Model{

      protected $name = 'shops';

         /* 快递服务商列表
    * @param array $param 前台传过来的参数  
    * @return array
    */
    function getShopList(){    
       $data=$this->field('id,name')->select()->toArray();
       return array_column($data,null,'id');   
    }

}